<!DOCTYPE  html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>覚書変更</title>
    <meta name="author" content="TOKOMETAL"/>
    <style type="text/css"> * {
            margin: 0;
            padding: 0;
            text-indent: 0;
        }

        .s1{
            color: black;
            font-style: normal;
            font-weight: normal;
            text-decoration: none;
            font-size: 25px;
            text-align: center;
            padding-top: 150px;
            padding-bottom: 30px;
        }

        .s2 {
            color: black;
            font-style: normal;
            font-weight: normal;
            text-decoration: none;
            font-size: 20px;
        }

        .p, p {
            color: black;
            font-style: normal;
            font-weight: normal;
            text-decoration: none;
            font-size: 20px;
            margin: 0pt;
        }

        .s4 {
            color: black;
            font-style: normal;
            font-weight: normal;
            text-decoration: none;
            font-size: 20px;
        }
    </style>
</head>
<body style="width: 790px;margin: auto">
<p class="s1">覚 書</p>
<p style="text-indent: 0pt;text-align: left;"><br/></p>
<?php
    $contract_type = $memorandumInformation['contract_type'];
    $title = '';
    if ($contract_type === 0) {
        $title = '産業廃棄物処理委託契約書';
    } else if ($contract_type === 1) {
        $title = '建設廃棄物処理委託契約書';
    } else if ($contract_type === 3) {
        $title = '一般廃棄物処理委託契約書';
    }

//    echo $contract_type;
    $terms_payment_memorandum = $memorandumInformation['terms_payment_memorandum'];
    $contract_classification_type_master_id = $memorandumInformation['contract_classification_type_master_id'];
    $contractA = true;
    $contractB = true;
    $contractC = true;
    $contractD = true;
    $str1 = 'と';
    $str2 = 'と';
    $str3 = 'と';
    $str4 = 'と';
?>
@if($contract_type == 0 || $contract_type == 3)
    @if($terms_payment_memorandum == 1)
        <?php
            $contractC = false;
            $contractD = false;
        ?>
    @else
        <?php
            $contractD = false;
        ?>
    @endif
@else
    @if($terms_payment_memorandum == 1)
        @if($contract_classification_type_master_id === 10209)
            <?php
                $contractC = false;
                $contractD = false;
            ?>
        @elseif($contract_classification_type_master_id === 10210)
            <?php
                $contractB = false;
                $contractD = false;
            ?>
        @elseif($contract_classification_type_master_id === 10211)
            <?php
                $contractD = false;
            ?>
        @endif
    @else
        @if($contract_classification_type_master_id === 10209)
            <?php
                $contractC = false;
            ?>
        @elseif($contract_classification_type_master_id === 10210)
            <?php
                $contractB = false;
            ?>
        @elseif($contract_classification_type_master_id === 10211)
        @endif
    @endif
@endif

@if($contractD)
    <?php
        $str4 = 'は';
    ?>
@elseif($contractC)
    <?php
        $str3 = 'は';
    ?>
@elseif($contractB)
    <?php
        $str2 = 'は';
    ?>
@endif
<?php
        $contractParams = '';
        if($contractA){
            $contractParams.='甲';
        }
        if($contractB){
            $contractParams.='乙';
        }
        if($contractC){
            $contractParams.='丙';
        }
        if($contractD){
            $contractParams.='丁';
        }
?>

<p class="s2" style="text-indent: 0pt;line-height: 30px" v-if="{{$contractA}}">当事者（甲） ：<span style="text-decoration:underline;"> {{$memorandumInformation['patya']}} </span><span style=" color: #000;">（以下甲という。）と、</span></p>
<?php
    if ($contractB) {
        echo "<p class=\"s2\" style=\"text-indent: 0pt;line-height: 30px\">当事者（乙） ：<span style=\"text-decoration:underline;\"> {$memorandumInformation['patyb']} </span><span style=\"color: #000;\">（以下乙という。）{$str2}、</span></p>";
    }
    if ($contractC) {
        echo "<p class=\"s2\" style=\"text-indent: 0pt;line-height: 30px\">当事者（丙） ：<span style=\"text-decoration:underline;\"> {$memorandumInformation['patyc']} </span><span style=\" color: #000;\">（以下丙という。）{$str3}、</span></p>";
    }
    if ($contractD) {
        echo "<p class=\"s2\" style=\"text-indent: 0pt;line-height: 30px\">当事者（丁） ：<span style=\"text-decoration:underline;\"> {$memorandumInformation['patyd']} </span><span style=\" color: #000;\">（以下丁という。）{$str4}、</span></p>";
    }
?>
<p style="padding-top: 10px;text-indent: 0pt;line-height: 30px">{{$contractParams}}間の&nbsp;{{$contract_date['year']}}&nbsp;年&nbsp;{{$contract_date['month']}}&nbsp;月&nbsp;{{$contract_date['day']}}&nbsp;日付（{{$memorandumInformation['contract_Num']}}）{{$title}}<!-- {{$memorandumInformation['contract_ready_document_Title']}} -->（以下『原契約』という）を締結したが、以下の内容の 変更・修正を行う為、下記の通り覚書を取り交わすこととする。なお、本覚書に記載のない内容については、原契約の内容が適用されるものとする。</p>
<p style="text-indent: 0pt;text-align: left;"><br/></p>
<p style="text-indent: 0pt;text-align: center;">記</p>
<p style="text-indent: 0pt;text-align: left;"><br/></p>
<p style="padding-left: 5pt;text-indent: 0pt;text-align: justify;">第１条&nbsp;&nbsp;&nbsp;&nbsp;変更項目（期間、料金、添付書面等）を下記のとおり変更とする。</p>
<p style="text-indent: 0pt;text-align: left;"><br/></p>
<p style="text-indent: 0pt;text-align: left;"><br/></p>
<p class="s2" style="padding-left: 5pt;text-indent: 0pt;text-align: justify;">（変更前） {{$memorandumInformation['book_old']}}</p>
<p style="text-indent: 0pt;text-align: left;"><br/></p>
<p class="s2" style="padding-left: 5pt;text-indent: 0pt;text-align: justify;">（変更後） {{$memorandumInformation['book_new']}}</p>
<p style="text-indent: 0pt;text-align: left;"><br/></p>
<p style="padding-left: 5pt;text-indent: 0pt;text-align: justify;">第２条&nbsp;&nbsp;&nbsp;&nbsp;この覚書に定めない条項中で疑義が生じた事項並びに変更が生じた場合、都度当事者間で誠意を持って協議の上決定する。</p>
<p style="text-indent: 0pt;text-align: left;"><br/></p>
<p style="padding-top: 3pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">甲および乙は以上の事項を確認し、本合意書の証として本書２通を作成してそれぞれ各１通を保有する。</p>
<p style="text-indent: 0pt;text-align: left;"><br/></p>
<p class="s2" style="padding-left: 50px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{$contract_date['year']}} 年&nbsp;{{$contract_date['month']}}&nbsp;月&nbsp;{{$contract_date['day']}}&nbsp;日</p>
<p style="text-indent: 0pt;text-align: left;"><br/></p>
<table style="font-size: 20px">
    <tr>
        <td colspan="2" style="text-align: center">甲：</td>
        <td colspan="12">{{$memorandumInformation['patya']}}</td>
    </tr>
    <tr><td></td></tr>
    <tr>
        <td colspan="2"></td>
        <td colspan="12">{{$memorandumInformation['patya_addr']}}</td>
    </tr>
    <tr><td></td></tr>
    <tr>
        <td colspan="2"></td>
        <td colspan="12">{{$memorandumInformation['patya_representative']}}</td>
    </tr>
    <?php if ($contractB) :?>
    <tr><td></td></tr>
    <tr>
        <td colspan="2"  style="text-align: center">乙：</td>
        <td colspan="12">{{$memorandumInformation['patyb']}}</td>
    </tr>
    <tr><td></td></tr>
    <tr>
        <td colspan="2"></td>
        <td colspan="12">{{$memorandumInformation['patyb_addr']}}</td>
    </tr>
    <tr><td></td></tr>
    <tr>
        <td colspan="2"></td>
        <td colspan="12">{{$memorandumInformation['patyb_representative']}}</td>
    </tr>
    <?php endif;?>
    <?php if ($contractC) :?>
    <tr><td></td></tr>
    <tr>
        <td colspan="2"  style="text-align: center">丙：</td>
        <td colspan="12">{{$memorandumInformation['patyc']}}</td>
    </tr>
    <tr><td></td></tr>
    <tr>
        <td colspan="2"></td>
        <td colspan="12">{{$memorandumInformation['patyc_addr']}}</td>
    </tr>
    <tr><td></td></tr>
    <tr>
        <td colspan="2"></td>
        <td colspan="12">{{$memorandumInformation['patyc_representative']}}</td>
    </tr>
    <?php endif;?>
    <?php if ($contractD) :?>
    <tr><td></td></tr>
    <tr>
        <td colspan="2"  style="text-align: center">丁：</td>
        <td colspan="12">{{$memorandumInformation['patyd']}}</td>
    </tr>
    <tr><td></td></tr>
    <tr>
        <td colspan="2"></td>
        <td colspan="12">{{$memorandumInformation['patyd_addr']}}</td>
    </tr>
    <tr><td></td></tr>
    <tr>
        <td colspan="2"></td>
        <td colspan="12">{{$memorandumInformation['patyd_representative']}}</td>
    </tr>
    <?php endif;?>
</table>
</body>
</html>
